module.exports = () => {
    return async (ctx, next) => {
        try {
            await next()
        } catch (error) {
            ctx.status = 500
            ctx.body = {
                code: 0,
                msg: '接口异常，请联系管理员，稍后再试'
            }
        }
    }
}